<template>
    <div class="home">
    <LeftMenuView :show="leftshow" @tableChange="getLeftValue"></LeftMenuView>
    <RightContentView @menuChange="getRightValue" :table="righttable"></RightContentView>
    </div>
</template>

<script>
    import LeftMenuView from "@/views/LeftMenuView.vue";
    import RightContentView from "@/views/RightContentView.vue";

    export default{
        name:"HomeView",
        components:{LeftMenuView, RightContentView},
        data(){
            return{
                leftshow:false,
                righttable:{
                    firstTable:"十方之域",
                    secondTable:"",
                },
            }
        },
        methods:{
            getRightValue(show){
                this.leftshow = show;
            },
            getLeftValue(table){
                this.righttable.firstTable=  table.firstTable
                this.righttable.secondTable= table.secondTable
            }
        }
    }

</script>